package com.zoro.barn.api.documentsql.document;

import com.zoro.barn.dto.documentsql.document.DocumentQueryDto;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhaoxingwu
 */
public interface BarnDocumentService {


    /**
     * 查询 产品的document
     *
     * @param dto param
     * @return result
     */
    @RequestMapping("countByProduct")
    DocumentQueryDto countByProduct(@RequestBody DocumentQueryDto dto);


    /**
     * 查询 project 的 document 包含 product
     *
     * @param dto dto
     * @return result
     */
    @RequestMapping("/countByProject")
    DocumentQueryDto countByProject(@RequestBody DocumentQueryDto dto);
}
